package com.sys.service;

import com.sys.model.CommonFile;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.NoSuchAlgorithmException;

/**
 * Created by dell on 2016/6/7.
 */
public interface CommonFileService {

    public int insert(CommonFile role);

    public int delete(String id);

    public  int update(CommonFile commonFile);

    public CommonFile selectById(String id);

    public CommonFile selectByCode(String code);

    public CommonFile upLoad(MultipartFile file, String path) throws IOException, NoSuchAlgorithmException;

    public CommonFile upLoadFtp(MultipartFile file, String path) throws IOException, NoSuchAlgorithmException;

}
